package testing;

import java.util.Random;

public class RandomNumberver2 {
	public static void main(String[] args) {
	Random random = new Random();
	int[][] matrix = new int[10][10];
	for (int outerIndex = 0; outerIndex < matrix.length; outerIndex++) {
	    for (int innerIndex = 0; innerIndex < matrix[outerIndex].length; innerIndex++) {
	        if (random.nextDouble() < 0.5) {
	            matrix[outerIndex][innerIndex] = 1;
	        } else {
	            matrix[outerIndex][innerIndex] = 0;
	        }
	    }
	}
	for( int i=0;i<10;i++){
		for( int j=0;j<10;j++){
			System.out.print(" "+matrix[i][j]);
		}
		System.out.println("\n");
	}

	}
}
